#include <math.h>
#include <gtk/gtk.h>
-#include "gtkthemingengineprivate.h"
-
#include <gtk/gtkstylecontext.h>
#include <gtk/gtkintl.h>
#include "gtkpango.h"
#include "gtkrenderprivate.h"
#include "gtkstylecontextprivate.h"
-#include "gtkthemingengineprivate.h"
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
}
}
-void
-_gtk_theming_engine_set_context (GtkThemingEngine *engine,
- GtkStyleContext *context)
-{
- GtkThemingEnginePrivate *priv;
-
- g_return_if_fail (GTK_IS_THEMING_ENGINE (engine));
- g_return_if_fail (GTK_IS_STYLE_CONTEXT (context));
-
- priv = engine->priv;
- priv->context = context;
-}
-
/**
* gtk_theming_engine_get_property:
* @engine: a #GtkThemingEngine
gdouble width,
gdouble height)
{
- gtk_do_render_check (engine->priv->context, cr, x, y, width, height);
+ gtk_render_check (engine->priv->context, cr, x, y, width, height);
}
static void
gdouble width,
gdouble height)
{
- gtk_do_render_option (engine->priv->context, cr, x, y, width, height);
+ gtk_render_option (engine->priv->context, cr, x, y, width, height);
}
static void
gdouble y,
gdouble size)
{
- gtk_do_render_arrow (engine->priv->context, cr, angle, x, y, size);
+ gtk_render_arrow (engine->priv->context, cr, angle, x, y, size);
}
static void
gdouble width,
gdouble height)
{
- gtk_do_render_background (engine->priv->context, cr, x, y, width, height);
+ gtk_render_background (engine->priv->context, cr, x, y, width, height);
}
static void
gdouble width,
gdouble height)
{
- gtk_do_render_frame (engine->priv->context, cr, x, y, width, height);
+ gtk_render_frame (engine->priv->context, cr, x, y, width, height);
}
static void
gdouble width,
gdouble height)
{
- gtk_do_render_expander (engine->priv->context, cr, x, y, width, height);
+ gtk_render_expander (engine->priv->context, cr, x, y, width, height);
}
static void
gdouble width,
gdouble height)
{
- gtk_do_render_focus (engine->priv->context, cr, x, y, width, height);
+ gtk_render_focus (engine->priv->context, cr, x, y, width, height);
}
static void
gdouble x1,
gdouble y1)
{
- gtk_do_render_line (engine->priv->context, cr, x0, y0, x1, y1);
+ gtk_render_line (engine->priv->context, cr, x0, y0, x1, y1);
}
static void
gdouble y,
PangoLayout *layout)
{
- gtk_do_render_layout (engine->priv->context, cr, x, y, layout);
+ gtk_render_layout (engine->priv->context, cr, x, y, layout);
}
static void
gdouble height,
GtkOrientation orientation)
{
- gtk_do_render_slider (engine->priv->context, cr, x, y, width, height, orientation);
+ gtk_render_slider (engine->priv->context, cr, x, y, width, height, orientation);
}
static void
gdouble xy0_gap,
gdouble xy1_gap)
{
- gtk_do_render_frame_gap (engine->priv->context, cr, x, y, width, height, gap_side, xy0_gap, xy1_gap);
+ gtk_render_frame_gap (engine->priv->context, cr, x, y, width, height, gap_side, xy0_gap, xy1_gap);
}
static void
gdouble height,
GtkPositionType gap_side)
{
- gtk_do_render_extension (engine->priv->context, cr, x, y, width, height, gap_side);
+ gtk_render_extension (engine->priv->context, cr, x, y, width, height, gap_side);
}
static void
gdouble width,
gdouble height)
{
- gtk_do_render_handle (engine->priv->context, cr, x, y, width, height);
+ gtk_render_handle (engine->priv->context, cr, x, y, width, height);
}
static void
gdouble width,
gdouble height)
{
- gtk_do_render_activity (engine->priv->context, cr, x, y, width, height);
+ gtk_render_activity (engine->priv->context, cr, x, y, width, height);
}
static GdkPixbuf *
const GtkIconSource *source,
GtkIconSize size)
{
- return gtk_do_render_icon_pixbuf (engine->priv->context, source, size);
+ return gtk_render_icon_pixbuf (engine->priv->context, source, size);
}
static void
gdouble x,
gdouble y)
{
- gtk_do_render_icon (engine->priv->context, cr, pixbuf, x, y);
+ gtk_render_icon (engine->priv->context, cr, pixbuf, x, y);
}
static void
gdouble x,
gdouble y)
{
- gtk_do_render_icon_surface (engine->priv->context, cr, surface, x, y);
+ gtk_render_icon_surface (engine->priv->context, cr, surface, x, y);
}
G_GNUC_END_IGNORE_DEPRECATIONS
return TRUE;
}
-void
+static void
gtk_do_render_check (GtkStyleContext *context,
cairo_t *cr,
gdouble x,
cairo_restore (cr);
}
-void
+static void
gtk_do_render_option (GtkStyleContext *context,
cairo_t *cr,
gdouble x,
cairo_restore (cr);
}
-void
+static void
gtk_do_render_arrow (GtkStyleContext *context,
cairo_t *cr,
gdouble angle,
_gdk_rgba_init_from_hsla (color_return, &hsla);
}
-void
+static void
gtk_do_render_background (GtkStyleContext *context,
cairo_t *cr,
gdouble x,
}
}
-void
+static void
gtk_do_render_frame (GtkStyleContext *context,
cairo_t *cr,
gdouble x,
cairo_restore (cr);
}
-void
+static void
gtk_do_render_expander (GtkStyleContext *context,
cairo_t *cr,
gdouble x,
cairo_restore (cr);
}
-void
+static void
gtk_do_render_focus (GtkStyleContext *context,
cairo_t *cr,
gdouble x,
}
}
-void
+static void
gtk_do_render_layout (GtkStyleContext *context,
cairo_t *cr,
gdouble x,
cairo_restore (cr);
}
-void
+static void
gtk_do_render_line (GtkStyleContext *context,
cairo_t *cr,
gdouble x0,
cairo_restore (cr);
}
-void
+static void
gtk_do_render_slider (GtkStyleContext *context,
cairo_t *cr,
gdouble x,
cairo_restore (cr);
}
-void
+static void
gtk_do_render_frame_gap (GtkStyleContext *context,
cairo_t *cr,
gdouble x,
cairo_restore (cr);
}
-void
+static void
gtk_do_render_extension (GtkStyleContext *context,
cairo_t *cr,
gdouble x,
cairo_line_to (cr, x2, y2);
}
-void
+static void
gtk_do_render_handle (GtkStyleContext *context,
cairo_t *cr,
gdouble x,
cairo_restore (cr);
}
-void
+static void
gtk_do_render_activity (GtkStyleContext *context,
cairo_t *cr,
gdouble x,
GDK_INTERP_BILINEAR);
}
-GdkPixbuf *
+static GdkPixbuf *
gtk_do_render_icon_pixbuf (GtkStyleContext *context,
const GtkIconSource *source,
GtkIconSize size)
return gtk_do_render_icon_pixbuf (context, source, size);
}
-void
+static void
gtk_do_render_icon (GtkStyleContext *context,
cairo_t *cr,
GdkPixbuf *pixbuf,
cairo_restore (cr);
}
-void
+static void
gtk_do_render_icon_surface (GtkStyleContext *context,
cairo_t *cr,
cairo_surface_t *surface,
#include <pango/pango.h>
#include <gdk/gdk.h>
-#include <gtk/gtkenums.h>
-#include <gtk/gtktypes.h>
-
-void gtk_do_render_check (GtkStyleContext *context,
- cairo_t *cr,
- gdouble x,
- gdouble y,
- gdouble width,
- gdouble height);
-void gtk_do_render_option (GtkStyleContext *context,
- cairo_t *cr,
- gdouble x,
- gdouble y,
- gdouble width,
- gdouble height);
-void gtk_do_render_arrow (GtkStyleContext *context,
- cairo_t *cr,
- gdouble angle,
- gdouble x,
- gdouble y,
- gdouble size);
-void gtk_do_render_background (GtkStyleContext *context,
- cairo_t *cr,
- gdouble x,
- gdouble y,
- gdouble width,
- gdouble height);
-void gtk_do_render_frame (GtkStyleContext *context,
- cairo_t *cr,
- gdouble x,
- gdouble y,
- gdouble width,
- gdouble height);
-void gtk_do_render_expander (GtkStyleContext *context,
- cairo_t *cr,
- gdouble x,
- gdouble y,
- gdouble width,
- gdouble height);
-void gtk_do_render_focus (GtkStyleContext *context,
- cairo_t *cr,
- gdouble x,
- gdouble y,
- gdouble width,
- gdouble height);
-void gtk_do_render_layout (GtkStyleContext *context,
- cairo_t *cr,
- gdouble x,
- gdouble y,
- PangoLayout *layout);
-void gtk_do_render_line (GtkStyleContext *context,
- cairo_t *cr,
- gdouble x0,
- gdouble y0,
- gdouble x1,
- gdouble y1);
-void gtk_do_render_slider (GtkStyleContext *context,
- cairo_t *cr,
- gdouble x,
- gdouble y,
- gdouble width,
- gdouble height,
- GtkOrientation orientation);
-void gtk_do_render_frame_gap (GtkStyleContext *context,
- cairo_t *cr,
- gdouble x,
- gdouble y,
- gdouble width,
- gdouble height,
- GtkPositionType gap_side,
- gdouble xy0_gap,
- gdouble xy1_gap);
-void gtk_do_render_extension(GtkStyleContext *context,
- cairo_t *cr,
- gdouble x,
- gdouble y,
- gdouble width,
- gdouble height,
- GtkPositionType gap_side);
-void gtk_do_render_handle (GtkStyleContext *context,
- cairo_t *cr,
- gdouble x,
- gdouble y,
- gdouble width,
- gdouble height);
-void gtk_do_render_activity (GtkStyleContext *context,
- cairo_t *cr,
- gdouble x,
- gdouble y,
- gdouble width,
- gdouble height);
-GdkPixbuf * gtk_do_render_icon_pixbuf (GtkStyleContext *context,
- const GtkIconSource *source,
- GtkIconSize size);
-void gtk_do_render_icon (GtkStyleContext *context,
- cairo_t *cr,
- GdkPixbuf *pixbuf,
- gdouble x,
- gdouble y);
-void gtk_do_render_icon_surface (GtkStyleContext *context,
- cairo_t *cr,
- cairo_surface_t *surface,
- gdouble x,
- gdouble y);
-
void gtk_render_paint_spinner (cairo_t *cr,
- gdouble radius,
- gdouble progress);
+ gdouble radius,
+ gdouble progress);
#endif /* __GTK_RENDER_PRIVATE_H__ */